package com.sn.author.common.exception;

import com.sn.author.common.enums.ExceptionEnum;
import lombok.Data;

@Data
public class ParamsException extends AException {

    public ParamsException(String message) {
        super(message);
    }

    public ParamsException() {
        super(ExceptionEnum.PARAMS_MISS_ERR.getMessage());
    }

    public ParamsException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
    }

    public ParamsException(String message, Throwable cause) {
        super(message, cause);
    }

}
